package net.csdn.business.discuss.api.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 更新讨论配置对象DTO discuss_config
 * 
 * @author zhangyl
 * @date 2023-07-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UpdateDiscussConfigDTO implements Serializable
{

    private static final long serialVersionUID = 1L;

    /** 组织ID/仓库ID */
    @NotBlank(message = "sourceId不能为空")
    private String sourceId;
    /** 1:组织；2:仓库 */
    @NotNull(message = "sourceType不能为空")
    @Range(min = 1, max = 2, message = "sourceType不合法")
    private Integer sourceType;
    /** 是否开启：1：开启；0：关闭 */
    @NotNull(message = "isOpen不能为空")
    private Boolean isOpen;
    /** 创建人 */
    @NotBlank(message = "currUserId不能为空")
    private String currUserId;
}
